//
//  GKZYViewController.h
//  GKZY_CLASS
//
//  Created by KwokChun Cheung on 15/11/25.
//  Copyright © 2015年 eenet. All rights reserved.
//

#import <UIKit/UIKit.h>

#import "GKZYHomeTermAreaView.h"
#import "GKZYHomeCourseAreaView.h"
#import "GKZYHomeInfoAreaView.h"

@class GKZYCourseListReq;

static NSString *OO_LOGIN_USER_ERROR = @"OOLoginUserError";
static NSString *OO_PAGE_NO = @"10";

#pragma mark - OOHomeModel

@interface GKZYHomeModel : NSObject
@property (nonatomic, strong) NSString * title;
@property (nonatomic, strong) NSMutableArray<GKZYHomeTermModel *> *terms;
@property (nonatomic, strong) NSMutableArray<GKZYHomeCourseModel *> *courses;
@property (nonatomic, strong) NSMutableArray *infoArray;
@end

#pragma mark - OOHomeViewController
@protocol GKZYHomeCourseCellDelegate;
@interface GKZYHomeViewController : UIViewController<UIViewControllerTransitioningDelegate,GKZYHomeCourseCellDelegate>
@property (nonatomic, strong) GKZYHomeModel *model;
@property (nonatomic, strong) NSString *currentCid;
@property (nonatomic, strong) NSNumber *currentPage;
@property (nonatomic, assign) int currentIndex;
@property (nonatomic, strong) NSString *sid;

-(instancetype)initWithSid:(NSString *)sid;
-(void)requestCatBy:(NSString *)sid;
-(void)requestList:(GKZYCourseListReq *)req isAdd:(BOOL)isAdd onLoading:(BOOL)onLoading;
@end

